public class Derived extends Base{
    public String c;
    public char d;
    protected void method() {
        System.out.println("这是子类的方法");
    }

    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.method();
    }
}
